package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.bean.MouseBean;

/**
 * 鼠害
 */
public interface MouseService extends IService<MouseBean> {
    /**
     * 分页显示所有鼠害信息
     * @param pageNo
     * @param pageSize
     * @return
     */
    IPage<MouseBean> findAllMouse(int pageNo, int pageSize);


    /**
     * 添加新鼠害
     * @param mouse
     */
    void addMouse(MouseBean mouse);


    /**
     * 根据鼠害id查询详细信息
     * @param mouseId
     * @return
     */
    MouseBean findId(int mouseId);


    /**
     * 根据鼠害名称模糊查询鼠害信息
     * @param mouseName
     * @return
     */
    IPage<MouseBean> findName(int pageNo, int pageSize,String mouseName);
}
